import requestMeeting from '@/plugins/axios'
import { FetchKisInfo } from './interface'
import { transKisInfo } from './translator'

/** 获取kis信息 */
export const fetchGetKisRequestInfo = async (meetingMoid: string) =>
	requestMeeting<FetchKisInfo>({
		url: `/mcc/${meetingMoid}/kis/info`,
		method: 'get',
		params: { meeting_id: meetingMoid },
	}).then((res) => (res.success && res.data ? transKisInfo(res.data) : undefined))
